package com.demo2do.fms.admin.service.supplier;

import java.util.List;

import com.demo2do.core.entity.page.Page;
import com.demo2do.fms.admin.entity.search.supplier.ReformSearch;
import com.demo2do.fms.admin.entity.security.Login;
import com.demo2do.fms.admin.service.DataService;
import com.demo2do.fms.entity.reform.Reform;

/**
 *
 * @author Ark
 *
 */
public interface ReformService extends DataService<Reform> {

    /**
     * @param login
     * @return
     */
    public int count(Login login);

    /**
     * @param login
     * @param page
     * @return
     */
    public List<Reform> list(Login login, Page page);
    
    /**
     * @param search
     * @return
     */
    public int count(ReformSearch search);
    
    /**
     * @param search
     * @param page
     * @return
     */
    public List<Reform> search(ReformSearch search, Page page);
    
    /**
     * @param reform
     * @param login
     */
    public void create(Reform reform, Login login);
    
    /**
     * @param login
     * @return
     */
    public int countByRecipient(Login login);
    
    /**
     * @param login
     * @param page
     * @return
     */
    public List<Reform> listByRecipient(Login login, Page page);
    
}
